<!--
    * Time    : 2021-03-11 18:01:25
    * Author  : zhangTj
    * Desc    : 图片
-->

<template>
    <div class="p-15p">
        <div class="font-14">
            <span class="text-danger" v-if="value.required">*</span>
            {{ index + 1 }}.{{ value.title }}
        </div>
        <div class="py-1">
            <drag-upload ref="drag-upload" v-model="value.content" :delay="800" :limit="value.count" />
        </div>
    </div>
</template>

<script>
import DragUpload from '@/components/DragUpload/DragUpload'

export default {
    name: 'Picture',
    components: { DragUpload },
    props: {
        value: Object,
        index: {
            type: Number | String,
            default: 0
        }
    }
}
</script>
